const env = import.meta.env.MODE || 'prod'; //获取当前环境变量
const EnvConfig = {
  development: { //生产环境
    baseApi: "/api",
    mockApi: "https://apifoxmock.com/m1/4068509-0-default/api/home/getTable",
  },
  test: { //测试环境
    baseApi: "/test.com/api",
    mockApi: "/mock",
  },
  prod: { //开发环境
    baseApi: "/future.com/api",
    mockApi: "/mock",
  },
}


export default {
  env,
  ...EnvConfig[env],
  mock: false  // 控制全局mock开关
}